/*
 * Package: org.grassfield.common.view
 * FileName: MenuListAction.java
 *  
 * Created by pandian on Jan 28, 2011
 */
package action;

import java.util.List;

import bean.Module;

import service.IMenuListService;



/**
 * The Class MenuListAction.
 */
public class MenuListAction {
	private IMenuListService menuListService;
	private List<Module> moduleList;
	
	/**
	 * Gets the module list.
	 * 
	 * @return the module list
	 */
	public List<Module> getModuleList() {
		return moduleList;
	}

	/**
	 * Sets the module list.
	 * 
	 * @param moduleList the new module list
	 */
	public void setModuleList(List<Module> moduleList) {
		this.moduleList = moduleList;
	}

	/**
	 * Sets the menu list service.
	 * 
	 * @param menuListService the new menu list service
	 */
	public void setMenuListService(IMenuListService menuListService) {
		this.menuListService = menuListService;
	}

	/**
	 * Execute.
	 * 
	 * @return the string
	 */
	public String execute(){
		this.setModuleList(this.menuListService.getModuleList());
		return "SUCCESS";
	}

}
